package com.heima.model.article.dtos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.util.Date;

@Data
public class CollectionBehaviorDto {

    @TableId(value = "entryId",type = IdType.ID_WORKER)
    @JsonSerialize(using = ToStringSerializer.class)//把当前字段转换为字符串进行响应
    private Long entryId;  //文章id
    private Short operation;  //0收藏  1取消收藏
    private Date publishTime;  //
    private Short type;
}
